/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package group2assignone.ucm.manager;

import group2assignone.ucm.UCController;
import group2assignone.view.manager.AddPromotionView;
import group2assignone.view.manager.ManagerView;

/**
 * Use Case: Change UI to Manager Add Promotion View                         <br>
 * Pre-condition: Manager is logged in and clicks the 'add Promotion' button.<br>
 * Post-condition: Add Promotion view is displayed                           <br>
 * 1. system exits the current view                                         <br>
 * 2. System opens the add airport view                                     <br>


 * @author group2
 */
public class UCUIAddPromotion implements UCController{

    
    public void run(){
        //1. system exits the current view
        ManagerView mv = ManagerView.getInstance();
        mv.dispose();
        //2. System opens the add airport view
        AddPromotionView ev = new AddPromotionView();
        //UCUIAddPromotion ucap = new UCUIAddPromotion(ev);
        //ucap.run();
        ev.go();

    }

}
